'use strict';
const db = uniCloud.database()
const videos = db.collection('video')

exports.main = async (event, context) => {
	//event为客户端上传的参数
	const video = event
	console.log("草拟吗")
	await videos.add({
		...video,
		createdTime: Date.now()
	})
	
	//返回数据给客户端
	return true
};
